/* 
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

function guadareditorresolu(){

    //alert('entro1');
    document.getElementById('editor1').value = CKEDITOR.instances.editor1.getData();
    var texto = document.getElementById('editor1').value;
   // alert(texto);
    document.getElementById('actresol').value = texto;
   // alert('salio');
 };


function guadareditorconclusion(){

  //  alert('entro11');
    document.getElementById('editor11').value = CKEDITOR.instances.editor11.getData();
    var texto = document.getElementById('editor11').value;
  //  alert(texto);
    document.getElementById('actconcl').value = texto;
//    alert('salio');
 };


function copiaresolucion(){
   // alert('cargado');
    var loq = true;
    var textob;
    textob = document.getElementById('editor2').value;
  //  alert(textob);
    CKEDITOR.instances.editor1.setData(textob);
    loq = false;
    return loq;
}

function copiarconclus(){
  //  alert('cargado');
    var textob;
    textob = document.getElementById('editor3').value;
 //   alert(textob);
    CKEDITOR.instances.editor11.setData(textob);
}

//function guardarPlantillaBase(){
//
//    alert('entro1');
//    document.getElementById('editor1').value = CKEDITOR.instances.editor1.getData();
//    var texto = document.getElementById('editor1').value;
//    alert(texto);
//    document.getElementById('j_idt43:editor2').value = texto;
//    alert('salio');
// }


function alerta(){

    plantillabase();
    var a= true;
    //alert('El Expediente Fue Encontrado, Seleccione el Boton Mostrar para Visualizar el Expediente');
    //document.getElementById('editor1').value = CKEDITOR.instances.editor1.getData();
    //var texto = document.getElementById('editor1').value;
    //alert(texto);
    //document.getElementById('j_idt43:editor2').value = texto;
    //alert('salio');
    return a;
 }

function plantillabase(){
    var textob;
    textob = document.getElementById('editor2').value;
    CKEDITOR.instances.editor1.setData(textob);

};


function CARGARCKE(){
 CKEDITOR.replace('editor1',{
                                    toolbar:
                                            [
                                                ['Source','-','Preview','-','Templates'],
                                                ['Find','Replace','-','Cut','Copy','Paste','PasteText','PasteFromWord','-','Print', 'SpellChecker', 'Scayt'],
                                                ['Undo','Redo','-','SelectAll','RemoveFormat'],
                                                '/',
                                                ['Bold','Italic','Underline','Strike','-','Subscript','Superscript'],
                                                ['NumberedList','BulletedList','-','Outdent','Indent','Blockquote'],
                                                ['JustifyLeft','JustifyCenter','JustifyRight','JustifyBlock'],
                                                ['Image','Table','HorizontalRule','SpecialChar','PageBreak'],
                                                '/',
                                                ['Styles','Format','Font','FontSize'],
                                                ['TextColor','BGColor'],
                                                ['Maximize', 'ShowBlocks','-']
                                            ]

                                }
                    );
}

function ESTILOCKE(){
        CKEDITOR.config.uiColor = '#OO99FF';
        CKEDITOR.config.resize_enabled = false;
        CKEDITOR.config.width = 770;
        CKEDITOR.config.height = 400;
        CKEDITOR.config.resize_minWidth = 770;
        CKEDITOR.config.resize_maxWidth = 770;
        CKEDITOR.config.resize_minHeight = 400;
        CKEDITOR.config.resize_maxHeight = 400;
 
}

function CARGARCKECON(){
 CKEDITOR.replace('editor11',{
                                    toolbar:
                                            [
                                                ['Source','-','Preview','-','Templates'],
                                                ['Find','Replace','-','Cut','Copy','Paste','PasteText','PasteFromWord','-','Print', 'SpellChecker', 'Scayt'],
                                                ['Undo','Redo','-','SelectAll','RemoveFormat'],
                                                '/',
                                                ['Bold','Italic','Underline','Strike','-','Subscript','Superscript'],
                                                ['NumberedList','BulletedList','-','Outdent','Indent','Blockquote'],
                                                ['JustifyLeft','JustifyCenter','JustifyRight','JustifyBlock'],
                                                ['Image','Table','HorizontalRule','SpecialChar','PageBreak'],
                                                '/',
                                                ['Styles','Format','Font','FontSize'],
                                                ['TextColor','BGColor'],
                                                ['Maximize', 'ShowBlocks','-']
                                            ]

                                }
                    );
}

function ESTILOCKECON(){
        CKEDITOR.config.uiColor = '#OO99FF';
        CKEDITOR.config.resize_enabled = false;
        CKEDITOR.config.width = 770;
        CKEDITOR.config.height = 400;
        CKEDITOR.config.resize_minWidth = 770;
        CKEDITOR.config.resize_maxWidth = 770;
        CKEDITOR.config.resize_minHeight = 400;
        CKEDITOR.config.resize_maxHeight = 400;

}